package lab02.test03;

/**
 * Created by 阿阿阿阿豪丶 on 2017/10/15.
 */
public class Student {
    int Computer;
    int Math;
    int English;
    int Sum;

    int Sum(int Computer , int Math , int English) {
        Sum = Computer + Math + English;
        return Sum;
    }

    int Max(int Computer, int Math, int English) {
        int Max;
        Max = Computer;
        if (Max < Math) {
            Max = Math;
            if (Max < English) {
                Max = English;
            }
        }
        return Max;
    }

    int Min(int Computer, int Math, int English) {
        int Min;
        Min = Computer;
        if (Min < Math) {
            Min = Math;
            if (Min < English) {
                Min = English;
            }
        }
        return Min;
    }

    float Average(int Computer, int Math, int English) {
        int Average;
        Average = (Computer + Math + English) / 3;
        return Average;
    }

}
